package org.yefei.homeworkday17.four;

public class TsetSet {

	public static void main(String[] args) {
		Set c = new CommanonHandSet("诺基亚", "8700功能机");
		Set a = new AptitudeHandSet("华为", "mate9智能机");
		CommanonHandSet co = (CommanonHandSet) c;
		co.call();
		co.sellMessage();
		System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<");
		AptitudeHandSet ap = (AptitudeHandSet) a;
		ap.call();
		ap.sellMessage();
		ap.takePhoto();
		ap.surfing();
		ap.playVideo();
	}

}
